const db=require('../config.js')
const secret = require("../util/secret"); //导入全局配置文件
const sql2 = "select * from goods ";
// 获取分类商品信息
exports.goodCat = (req, res) => {
  db.query(sql2, [req.query.cid], (err, results) => {
    if (err) return res.cc(err);
    if (results.length === 0) return res.cc("获取商品失败！");
    res.zz("获取商品成功！", results);
	 
  });
};